@import '../../../../../assets/less/base/variables.less';
.content {
	padding: 30px 0;
	padding-top: 10px;
}

.main-content {
	padding: 10px 20px 40px 20px;
}

.charge-rule {
	.rule-top {
		background: @grayF2;
		height: 48px;
		display: flex;
		.zb-inline-form {
			margin-bottom: 0;
		}
		.title {
			flex: 1;
			height: 48px;
			line-height: 48px;
			font-size: 14px;
			color: @grey47;
		}
		.action {
			display: flex;
			align-items: center;
		}
		.delItem-icon {
			height: 100%;
			width: 60px;
			display: flex;
			justify-content: center;
			align-items: center;
			cursor: pointer;
			.el-icon-close {
				color: @grey66;
				font-size: 16px;
			}
		}
		.open-status {
			height: 20px;
			line-height: 20px;
			width: 48px;
			text-align: center;
			border-radius: 10px;
			background: @green2;
			font-size: 12px;
			color: #fff;
			margin-right: 15px;
			&.close {
				background: #cdcdcd;
			}
		}
	}
}

.charge-content {
	border: 1px solid @grayD8;
	border-top: none;
	padding: 20px;
}

.rule-item {
	margin-bottom: 18px;
	position: relative;
	.del-rule-item-icon {
		position: absolute;
		right: -18px;
		top: -19px;
		height: 40px;
		width: 40px;
		display: flex;
		justify-content: center;
		align-items: center;
		cursor: pointer;
		.el-icon-circle-close {
			color: @red;
			font-size: 22px;
		}
	}
	&:last-child {
		margin-bottom: 0;
	}
	.rule-detail {
		margin: 0 -20px;
		.detail-content {
			margin-top: 15px;
		}
	}
	.show-rule-detail {
		background: @greyF4;
		padding: 0 20px;
		height: 30px;
		position: relative;
		cursor: pointer;
		.title {
			font-size: 14px;
			color: @darkGrey;
			line-height: 30px;
		}
		.show-rule-detail-icon {
			position: absolute;
			right: 0;
			height: 30px;
			top: 0;
			width: 50px;
			display: flex;
			justify-content: center;
			align-items: center;

			.el-icon-caret-bottom {
				font-size: 18px;
				color: @darkGrey;
				transition: transform 0.25s ease;
				transform-origin: center center;
				&.rotate180 {
					transform: rotate(-180deg);
				}
			}
		}
	}
	.rule-setting {
		margin-left: 40px;
		margin-right: 40px;
		margin-bottom: 20px;
		&.dates-rules {
			.rule-type-tab {
				margin-left: 15px;
			}
		}
	}
	.rule-setting-content {
		padding: 20px;
		margin-left: 40px;
		margin-right: 40px;
		border: 1px solid #d8d8d8;
		border-radius: 4px;
		.type-content {
			.el-form--inline:last-child {
				margin-bottom: 0;
			}
			&.xunhuan-content {
				padding-left: 16px;
				margin-left: 12px;
				border-left: 2px dashed @grayC2;
				position: relative;
				.top-circle {
					position: absolute;
					left: -12px;
					top: 0;
					width: 24px;
					height: 24px;
					background: #fff;
					&:before {
						content: '';
						position: absolute;
						left: 6px;
						top: 12px;
						width: 10px;
						height: 10px;
						border-radius: 50%;
						border: 2px solid @blue;
					}
				}
				.bottom-circle {
					position: absolute;
					left: -12px;
					bottom: 0;
					width: 24px;
					height: 24px;
					background: #fff;
					&:before {
						content: '';
						position: absolute;
						left: 6px;
						bottom: 12px;
						width: 10px;
						height: 10px;
						border-radius: 50%;
						border: 2px solid @blue;
					}
				}
			}
		}
	}
}

.rule-type-tab {
	display: flex;
	.tab-item {
		width: 128px;
		height: 45px;
		display: flex;
		align-items: center;
		justify-content: center;
		.el-radio {
			display: flex;
			align-items: center;
			justify-content: center;
		}
		&.active {
			background: @greyF4;
			border-top-left-radius: 4px;
			border-top-right-radius: 4px;
		}
	}
}

.zb-inline-form {
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	.el-form-item {
		margin-bottom: 0;
		&.input-width-control {
			.el-form-item__content {
				width: 180px;
			}
		}
	}
}

.question-icon {
	font-size: 20px;
	color: @grey99;
	margin: 0 8px;
	cursor: pointer;
}

.add-rule-icon {
	margin-left: 30px;
}

.add-ruleDetail-icon {
	margin-left: 10px;
}

.xunhuan-inline-form {
	margin-bottom: 0;
	background: #f4f4f4;
	padding: 7px 0;
	border-radius: 4px;
	margin-top: -5px;
	width: 476px;
	margin-bottom: 15px;
	position: relative;
	.del-icon {
		position: absolute;
		right: 0px;
		top: 0;
		height: 100%;
		width: 50px;
		display: flex;
		justify-content: center;
		align-items: center;
		cursor: pointer;
		.el-icon-close {
			color: #a6a6a6;
			font-size: 16px;
			font-weight: bold;
		}
	}
}

.el-date-editor.el-input {
	width: 170px;
}

.date-form-item {
	padding: 7px;
	background: #f4f4f4;
	margin-bottom: 0px;
	position: relative;
	.show-rule-detail-icon {
		position: absolute;
		right: 0;
		top: 0;
	}
	.del-icon {
		position: absolute;
		right: 50px;
		top: 0;
		height: 100%;
		width: 50px;
		display: flex;
		justify-content: center;
		align-items: center;
		cursor: pointer;
		.el-icon-close {
			color: #a6a6a6;
			font-size: 16px;
			font-weight: bold;
		}
	}
}

.daysRules {
	.top-title {
		font-size: 14px;
		color: @darkGrey;
		line-height: 30px;
		background: @greyF4;
		padding: 0 20px;
	}
	.daysRules-content {
		padding-left: 20px;
		padding-right: 20px;
		padding-top: 20px;
		border-left: 1px solid @grayD8;
		border-right: 1px solid @grayD8;
		border-bottom: 1px solid @grayD8;
	}
}

.zb-form .daysRules-content .el-radio {
	width: 95px;
}

.unit_ {
	font-size: 20px;
	margin: 0 10px;
}

.add-ruleGroup-icon {
	color: @blue;
	font-size: 14px;
	display: flex;
	align-items: center;
	cursor: pointer;
	.el-icon-circle-plus {
		font-size: 17px;
	}
}

.rule-form {
	margin-bottom: 25px;
}

.charge-type-tab {
	display: flex;
	padding-left: 40px;
	border-bottom: 1px solid #d7dce2;
	margin: 0 -20px;
	margin-bottom: 30px;
	.tab-item {
		height: 36px;
		line-height: 36px;
		text-align: center;
		font-size: 14px;
		color: #999999;
		padding: 0 34px;
		&.active {
			background: #5995d8;
			border-radius: 4px 4px 0 0;
			color: #fff;
		}
	}
}

.action-box {
	.el-button + .el-button {
		margin-left: 40px;
	}
}

.show-rule-detail-icon {
	height: 100%;
	width: 50px;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	.el-icon-caret-bottom {
		font-size: 18px;
		color: #a6a6a6;
		transition: transform 0.25s ease-in;
		transform-origin: center center;
		&.rotate180 {
			transform: rotate(-180deg);
		}
	}
}

.time-rule-content {
	padding-top: 20px;
	padding-bottom: 40px;
	border-left: 1px solid @grayD8;
	border-right: 1px solid @grayD8;
	border-bottom: 1px solid @grayD8;
}
